{{!

  Copyright (c) Meta Platforms, Inc. and affiliates.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

}}{{!

Cython wrappers of the C++ client classes that were generated by thrift.
By convention, service classes have a c in front of them to differentiate them
from the Python classes, which have no differentiation. That allows the Python
calling code to call into the code without any awkward prefixes or suffixes.

This is a top-level file that gets imported by the CythonClients.pyx file. That
file exposes Python wrappers of the services client to the end user.

}}
{{^program:auto_migrate?}}
{{> common/auto_generated_py}}
cimport thrift.py3.client

{{#program:includeNamespaces}}
{{#hasServices?}}
cimport {{#includeNamespace}}{{value}}.{{/includeNamespace}}clients as _{{#includeNamespace}}{{value}}_{{/includeNamespace}}clients
{{/hasServices?}}
{{/program:includeNamespaces}}

{{#program:services}}
cdef class {{service:name}}{{#service:extends}}({{#service:externalProgram?}}{{!
    }}_{{#service:py3Namespaces}}{{value}}_{{/service:py3Namespaces}}{{!
    }}{{service:programName}}_clients.{{/service:externalProgram?}}{{service:name}}{{!
  }}){{/service:extends}}{{^service:extends?}}(thrift.py3.client.Client){{/service:extends?}}:
    pass

{{#service:supportedInteractions}}
cdef class {{service:parent_service_name}}_{{service:name}}(thrift.py3.client.Client):
    pass

{{/service:supportedInteractions}}
{{/program:services}}
{{/program:auto_migrate?}}
